# -*- coding: utf-8 -*-
# @Time    : 2019/2/21 14:50
# @Author  : fovegage
# @Email   : fovegage@gmail.com
# @File    : FollowHandler.py
# @Software: PyCharm
import xmltodict
from handlers import BaseHandler


class FollowHandler(BaseHandler):
    def post(self):
        xml = self.request.body
        dict_xml = xmltodict.parse(xml)['xml']
        if "event" == dict_xml.get("MsgType") and "subscribe" == dict_xml.get("Event"):
            CreateTime = dict_xml.get("CreateTime", "")
            FromUserName = dict_xml.get('FromUserName', "")
            self.db
